
package com.rzico.core.plugin.market;

import com.rzico.core.model.PluginAttribute;
import com.rzico.core.plugin.MarketPlugin;
import com.rzico.core.service.SysPluginAttributeService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.*;

/**
 * Plugin -  网易严选对接API插件
 *
 * @author RZICO.BOOT
 * @version 3.0
 */
@Component("marketWYYXPlugin")
public class MarketWYYXPlugin extends MarketPlugin {

	protected Logger logger = LoggerFactory.getLogger(this.getClass());

	@Autowired
	protected SysPluginAttributeService sysPluginAttributeService;

	@Override
	public String getName() {
		return "网易严选对接API";
	}

	@Override
	public String getVersion() {
		return "1.0.0";
	}

	@Override
	public List<PluginAttribute> getAttributeKeys() {
		List<PluginAttribute> data = new ArrayList<>();
//		data.add(new PluginAttribute("appKey","2d8d48b61583416db159fe1259b524d2",PluginAttribute.STRING_VALUE));
//		data.add(new PluginAttribute("appSecre","85def2d115954200b33e024b44322363",PluginAttribute.STRING_VALUE));
		data.add(new PluginAttribute("appKey","appKey",PluginAttribute.STRING_VALUE));
		data.add(new PluginAttribute("appSecre","appSecre",PluginAttribute.STRING_VALUE));
		return data;
	}


	@Override
	public int compareTo(MarketPlugin o) {
		return 0;
	}
}